//
//  CollectSaveManager.m
//  JPWords
//
//  Created by 梁淑婷 on 2024/7/2.
//

#import "CollectSaveManager.h"

@implementation CollectSaveManager

- (NSString *)methodName{
    return @"/word/collect/save";
}

- (JPAPIManagerRequestType)requestType{
    return JPAPIManagerRequestTypePOST;
}

- (NSDictionary *)paramsForApi:(JPAPIBaseManager *)manager{
    NSMutableDictionary *dict = @{}.mutableCopy;
    dict[@"wordId"] = self.wordId;
    dict[@"type"] = self.type;
    NSString *userId = [[NSUserDefaults standardUserDefaults]objectForKey:@"userId"];
    dict[@"userId"] = userId;
    return dict;
}

@end
